home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / VOL_400 / 460_01 / DOC / MSVCPP.TXT < prev    next >
Encoding:
Text File  |  1996-10-19  |  2.3 KB  |  71 lines

  1.  
  2.  
  3.                          YACL   HOWTO.TXT
  4.                          
  5.                   How to use YACL with Microsoft Visual C++
  6.                      Last update: October 19th, 1996
  7.                          
  8.  
  9. This file provides directions on how to build YACL and its demo programs
  10. using Microsoft Visual C++.
  11.  
  12. Caveat: YACL cannot  be built with the Win16  versions (1.52 and earlier) of
  13. Visual   C++, because  those   versions do  not  have  adequate support  for
  14. templates. I have tested YACL with VC++ version 2.1 under Windows NT version
  15. 3.51.
  16.  
  17.  
  18. Here are the steps:
  19.  
  20.     0.  Create and change into the directory you want to install YACL in.
  21.         For example, in an NT command window:
  22.  
  23.               md c:\yacl
  24.               c:
  25.               cd \yacl
  26.  
  27.  
  28.     1.  Unzip the file YACL0160.ZIP, preserving directories. For example:
  29.  
  30.               unzip yacl0160.zip
  31.  
  32.         or, if you use pkunzip under DOS:
  33.  
  34.               pkunzip -d yacl0160.zip
  35.  
  36.     2.  Set the environment variable YACLPATH to point to the
  37.         directory in which yacl was unzipped, e.g.,
  38.  
  39.              set YACLPATH=c:\yacl
  40.  
  41.     3.  Modify the control file. Edit the file control/msvcpp.ctl. In that
  42.         file, set the variable MSVCPATH to point to the bin directory of the
  43.         compiler. Its default setting in that file is f:\msvc20.
  44.  
  45.     4.  Make sure that the directory containing nmake is in your PATH. For
  46.         example, if you have installed VC++ in e:\msvc20, then make sure
  47.         that e:\msvc20\bin is in your PATH.
  48.         
  49.     5.  Build the libraries. CD into the directory you chose in step 0
  50.         and issue the make command in an NT command window, type 
  51.  
  52.                    nmake -f msvcpp.mak
  53.  
  54.     6.  Poke around in the directory structure under basedemo and
  55.         uidemo; build and try out the programs there using the make
  56.         files provided. Each directory in uidemo and almost  every directory
  57.         in basedemo contains a VC++-specific makefile named msvcpp.mak
  58.         which can be used for building the demo. I have provided  makefiles
  59.         for most of the base demos but not all because most, if not all, the
  60.         base classes are heavily used in the UI classes.
  61.  
  62.  
  63.  
  64. You can also build a debug version of the library via the command
  65.  
  66.            nmake -f msvcpp.mak "DEBUG=-DDEBUG"
  67.  
  68.  
  69.  
  70. ----------------------------- END OF MSVCPP.TXT ----------------------
  71.